/*
* @author : TF-BJ-C064
* @creation : 2014-8-3 下午7:20:50
* @description : 
*
*/

package com.bean;

import java.io.Serializable;

/**
 * 绩效统计对象
 * <p>Title: PerformanceBean</p>
 * <p>Description: </p>
 * <p>Company: www.teleframe.cn</p> 
 * @author	lijian
 * @date	2014-8-3
 */
public class PerformanceBean implements Serializable {	
	
	private static final long serialVersionUID = -7211893828137255879L;
	
	private Long id;//parkmanager.userid
	private String usercode;//parkmanager.userName
	private String username;//parkmanager.realName
	private Integer orderSum;//订单总数
	private Double  reAmount;//应收金额
	private Double  acAmount;//实收金额
	private Float  percent;//所占总收入（实收金额）比例
	
	public PerformanceBean(){}

	public PerformanceBean(Long id, String usercode, String username,
			Long orderSum, Double reAmount, Double acAmount) {
		this.id = id;
		this.usercode = usercode;
		this.username = username;
		this.orderSum = orderSum.intValue();
		this.reAmount = reAmount;
		this.acAmount = acAmount;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsercode() {
		return usercode;
	}

	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getOrderSum() {
		return orderSum;
	}

	public void setOrderSum(Integer orderSum) {
		this.orderSum = orderSum;
	}

	public Double getReAmount() {
		return reAmount;
	}

	public void setReAmount(Double reAmount) {
		this.reAmount = reAmount;
	}

	public Double getAcAmount() {
		return acAmount;
	}

	public void setAcAmount(Double acAmount) {
		this.acAmount = acAmount;
	}

	public Float getPercent() {
		if(percent==null)
			return (float) 0;
		return percent;
	}

	public void setPercent(Float percent) {
		this.percent = percent;
	}

}
